package org.car.world.core.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.car.world.core.entily.VouchersTable;

@Mapper
public interface VouchersTableMapper {

    int deleteByPrimaryKey(Integer vouchersId);

    int insert(VouchersTable record);

    VouchersTable selectByPrimaryKey(Integer vouchersId);

    List<VouchersTable> selectAll();

    int updateByPrimaryKey(VouchersTable record);

    List<VouchersTable> selectLimit(@Param("form") Integer form, @Param("size") Integer size);

    int selectCountByUser(@Param("userId") Integer userId);

    List<VouchersTable> selectByUser(@Param("userId") Integer userId);

    List<VouchersTable> selectByVouchersIdList(@Param("vouchersId") Integer vouchersId, @Param("merchantsId") Integer merchantsId);

    int selectcount();
}